// index.js
// const computedBehavior = require("miniprogram-computed").behavior;

const app = getApp();

Page({
  // behaviors: [computedBehavior],
  data: {
    firstName: "刘",
    lastName: "亦菲",
    time: 30 * 60 * 60 * 1000,
    timeData: {},
  },
  // computed: {
  //   fullName(data) {
  //     return data.firstName + data.lastName;
  //   },
  // },
  onChange(e) {
    this.setData({
      timeData: e.detail,
    });
  },
  // ------------------------
  onLoad() {
    // console.log("++++-----");
    // 1.  调用全局函数getApp()
    // console.log(app.globalData.a, app.globalData.b, app.globalData.c);
    // app.globalData.sayHi();
    // 2. 获取当前页面
    // const stack = getCurrentPages();
    // console.log(stack);
  },
});
